import 'dart:convert';

IndiUserInfo indiUserInfoFromJson(String str) =>
    IndiUserInfo.fromJson(json.decode(str));

String indiUserInfoToJson(IndiUserInfo data) => json.encode(data.toJson());

class IndiUserInfo {
  IndiUserInfo({
    this.firstName,
    this.lastName,
    this.email,
    this.confirmEmail,
    this.userName,
    this.phoneNumber,
    this.password,
    this.subscription,
    this.firstStep,
    this.quoteNumber,
  });

  String? firstName;
  String? lastName;
  String? email;
  String? confirmEmail;
  String? userName;
  String? phoneNumber;
  String? password;
  String? subscription;
  bool? firstStep;
  String? quoteNumber;

  factory IndiUserInfo.fromJson(Map<String, dynamic> json) => IndiUserInfo(
      firstName: json["firstName"],
      lastName: json["lastName"],
      email: json["email"],
      confirmEmail: json["confirmEmail"],
      userName: json["userName"],
      phoneNumber: json["phoneNumber"],
      password: json["password"],
      subscription: json["subscription"],
      firstStep: json["firstStep"],
      quoteNumber: json["quoteNumber"]);

  Map<String, dynamic> toJson() => {
        "firstName": firstName,
        "lastName": lastName,
        "email": email,
        'confirmEmail': confirmEmail,
        "userName": userName,
        "phoneNumber": phoneNumber,
        "password": password,
        "subscription": subscription,
        "firstStep": firstStep,
        "quoteNumber": quoteNumber
      };
}
